from django.contrib.auth.models import AbstractUser
from django.db import models


# Create your models here.
class User(AbstractUser):
    username = models.CharField(max_length=128, unique=True, verbose_name='用户名')
    phone_number = models.CharField(max_length=15, verbose_name='手机号',default='111')
    is_admin = models.BooleanField(default=False, verbose_name='是否管理员')
    is_active = models.BooleanField(default=True, verbose_name='是否在职', max_length=100)
    avatar = models.ImageField(upload_to='avatar/', null=True, blank=True)

    class Meta:
        verbose_name = '用户'
        verbose_name_plural = verbose_name
